package com.campus.common.service.impl;

import com.campus.common.dto.FriendDto;
import com.campus.common.mapper.FriendMapper;
import com.campus.common.service.FriendService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FriendServiceImpl implements FriendService {
    @Resource
    private FriendMapper friendMapper;
    @Override
    public List<FriendDto> getFriendInfos(Integer userId) {
        return friendMapper.selectFriendInfoByUserId(userId);
    }

}
